API Documentation
JsonExporter.h
1 // JsonExporter.h
3 //
5 
6 namespace nkExport
7 {
17  class DLL_EXPORT_EXPORT JsonExporter final
18  {
19  private :
20 
24  JsonExporter () = delete ;
28  ~JsonExporter () = delete ;
29 
30  public :
31 
32  // Export
41  static std::string exportObjectIntoString (Exportable* toExport) ;
48  static std::string exportTreeIntoString (Node* rootNode) ;
49 
50  // Import
58  static ExporterLoadResult importIntoTree (const std::string_view& strVal) ;
59  } ;
60 }
nkExport::Exportable
An interface to define objects that can be exported using this component.
Definition: Exportable.h:15
nkExport::JsonExporter::importIntoTree
static ExporterLoadResult importIntoTree(const std::string_view &strVal)
nkExport
Encompasses all API of component NilkinsExport.
Definition: Base64Encoder.h:7
nkExport::ExporterLoadResult
Holds the information about a try to import data sources.
Definition: ExporterLoadResult.h:15
nkExport::Node
A node in the tree structure representing the data to export / import.
Definition: Node.h:42
nkExport::JsonExporter::exportObjectIntoString
static std::string exportObjectIntoString(Exportable *toExport)
nkExport::JsonExporter
Exporter to use Json formatted data.
Definition: JsonExporter.h:18
nkExport::JsonExporter::exportTreeIntoString
static std::string exportTreeIntoString(Node *rootNode)